//
//  HPCommanTools.swift
//  MyWeibo
//
//  Created by apple on 16/4/11.
//  Copyright © 2016年 Apengpeng. All rights reserved.
//

import UIKit
//全局变量
//let client_id = "2760785724"
//let redirect_uri = "http://www.itheima.com"
//let client_secret = "8e8694345eb6cd09eb8cbd234c715c53"


// 1
//let client_id = "3250087943"
//let redirect_uri = "http://www.itheima.com"
//let client_secret = "edbe7bd94c001ebd9a37723af8b54a19"
    
// 2
let client_id = "1122818293"
let redirect_uri = "http://www.itheima.com"
let client_secret = "a1b58b8f3936f8dbb91c40e6c15de346"

let netWorkError = "网络错误"


let screenHeight = UIScreen.mainScreen().bounds.size.height
let screenWidth = UIScreen.mainScreen().bounds.size.width
// 通知的名称
let HPSwitchRootViewController = "HPSwitchRootViewController"
// 随机色
func randomColor() -> UIColor{
    
    let r = CGFloat(random() % 256) / 255
    let g = CGFloat(random() % 256) / 255
    let b = CGFloat(random() % 256) / 255
    
    return UIColor(red: r, green: g, blue: b, alpha: 1.0)
}

// 很耗性能, 定义为全局的
let df = NSDateFormatter()

let baseTag = 100
